package com.ruoyi.advertisement.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 广告投放策略对象 advertisement_strategy
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class AdvertisementStrategy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 策略ID */
    private Long strategyId;

    /** 策略名称 */
    @Excel(name = "策略名称")
    private String strategyName;

    /** 强制观看时长(秒) */
    @Excel(name = "强制观看时长")
    private Integer forcedViewDuration;

    /** 是否允许跳过(0-否,1-是) */
    @Excel(name = "是否允许跳过", readConverterExp = "0=否,1=是")
    private Integer skipEnabled;

    /** 轮播类型(1-顺序,2-随机) */
    @Excel(name = "轮播类型", readConverterExp = "1=顺序,2=随机")
    private Integer rotationType;

    /** 状态(0-禁用,1-启用) */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=启用")
    private Integer status;

    /** 关联的设备列表 */
    private List<String> deviceIds;

    /** 关联的素材列表 */
    private List<Long> materialIds;

    public void setStrategyId(Long strategyId) 
    {
        this.strategyId = strategyId;
    }

    public Long getStrategyId() 
    {
        return strategyId;
    }
    public void setStrategyName(String strategyName) 
    {
        this.strategyName = strategyName;
    }

    public String getStrategyName() 
    {
        return strategyName;
    }
    public void setForcedViewDuration(Integer forcedViewDuration) 
    {
        this.forcedViewDuration = forcedViewDuration;
    }

    public Integer getForcedViewDuration() 
    {
        return forcedViewDuration;
    }
    public void setSkipEnabled(Integer skipEnabled) 
    {
        this.skipEnabled = skipEnabled;
    }

    public Integer getSkipEnabled() 
    {
        return skipEnabled;
    }
    public void setRotationType(Integer rotationType) 
    {
        this.rotationType = rotationType;
    }

    public Integer getRotationType() 
    {
        return rotationType;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public List<String> getDeviceIds() 
    {
        return deviceIds;
    }

    public void setDeviceIds(List<String> deviceIds) 
    {
        this.deviceIds = deviceIds;
    }

    public List<Long> getMaterialIds() 
    {
        return materialIds;
    }

    public void setMaterialIds(List<Long> materialIds) 
    {
        this.materialIds = materialIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("strategyId", getStrategyId())
            .append("strategyName", getStrategyName())
            .append("forcedViewDuration", getForcedViewDuration())
            .append("skipEnabled", getSkipEnabled())
            .append("rotationType", getRotationType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 